package edu.gyc.appshiro.service;

import edu.gyc.appshiro.model.Permission;
import edu.gyc.appshiro.model.Role;
import com.baomidou.mybatisplus.extension.service.IService;
import edu.gyc.appshiro.vo.PermissionVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ls
 * @since 2021-02-02
 */
public interface RoleService extends IService<Role> {
    List<PermissionVo> getPermsByRoleId(Integer rid);
    void updateRolePermissions(Integer roleId,List<Integer> ids);
    List<PermissionVo> getUserPermissionByUid(Integer uid);
    boolean addRoleUser(Integer rid, Integer uid);
    boolean addRole(Role role);
    boolean delRole(Integer rid);
}
